package com.le.bbs;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import springfox.documentation.oas.annotations.EnableOpenApi;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan("com.le.bbs.dao")
@EnableDiscoveryClient  // 启动服务注册发现的客户端：httpclient/postman
@EnableSwagger2
@EnableOpenApi
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 60*60*24) // 过期时间 1天
public class SecurityApplication {
    public static void main(String[] args) {
        SpringApplication.run(SecurityApplication.class, args);
    }
}
